package com.qf.utils;

/**
 * @author ljw
 * @version 1.0
 * @Date 2024/12/27 15:05
 */
public class UserUtils {
    private static ThreadLocal<Integer> threadLocal=new ThreadLocal<>();
    public static void setId(Integer id){
        threadLocal.set(id);
    }
    public static Integer getId(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
